package com.zt.teacher.dao;

import com.zt.common.pojo.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2021-12-16
 */
@Mapper
public interface CourseDao {

    void insert(Course course);

    List<Course> getAllCourse();

    void delete(int courseId);

    void update(Course course);

    Course getCourseById(int courseId);

    Course getCourseByName(String name);
}
